<?php

//Don't read the following function, 
//it's just some codes making smarty works for wml extension
// (copied from internet) 
// be sure apache is configure for the .wml extensions!
// put this function somewhere in your application, or in Smarty.addons.php
function insert_header($params)
{
   // this function expects $content argument
   if (empty($params['content'])) {
       return;
   }
   header($params['content']);
   return;
}

function initSmarty() {
	$Constant888 = Constant888::instance();
	$smarty = new Smarty;	 
	$smarty->template_dir= 'Templates\\';
	$smarty->compile_dir= $Constant888 -> value("SMARTY_DIR_PATH").'\Compiled_Templates\\';
	$smarty->config_dir= $Constant888 -> value("SMARTY_DIR_PATH").'\Config_dir\\';
	$smarty->cache_dir= $Constant888 -> value("SMARTY_DIR_PATH").'\Cache_dir\\';
	$smarty->caching = 0; //No cache for mobile phone
	return $smarty;
}
?>